import request from '@/utils/request'

// 查询功能布局规格列表
export function listFormat (query) {
  return request({
    url: '/platform/layout/format/list',
    method: 'get',
    params: query
  })
}

// 查询功能布局规格详细
export function getFormat (formatId) {
  return request({
    url: '/platform/layout/format/' + formatId,
    method: 'get'
  })
}

// 新增功能布局规格
export function addFormat (data) {
  return request({
    url: '/platform/layout/format',
    method: 'post',
    data: data
  })
}

// 修改功能布局规格
export function updateFormat (data) {
  return request({
    url: '/platform/layout/format',
    method: 'put',
    data: data
  })
}

// 删除功能布局规格
export function delFormat (formatId) {
  return request({
    url: '/platform/layout/format/' + formatId,
    method: 'delete'
  })
}
